package com.tansun.easycare.rule.table.singletblindex.model;

import java.io.Serializable;

import com.tansun.easycare.rule.common.model.BaseItem;
import com.tansun.easycare.rule.table.decisiontable.model.DecisionTableItem;

public class SingleTblIndexItem extends BaseItem implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 709024010556887943L;
    /**
     * 参数值组
     */
    private String controlValue;
    private String lowerOpt;        // lower_opt
    private String upperOpt;        // upper_opt
    /**
     * 输出单元格ID
     */
    private String tabId;
    /**
     * 是否集合
     */
    private String collection;
    /**
     * 变量类型 in/out
     */
    private String contentType;

    public String getTabId() {
        return tabId;
    }

    public void setTabId(String tabId) {
        this.tabId = tabId;
    }

    public String getControlValue() {
        return controlValue;
    }

    public void setControlValue(String controlValue) {
        this.controlValue = controlValue;
    }

    public String getCollection() {
        return collection;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getLowerOpt() {
        return lowerOpt;
    }

    public void setLowerOpt(String lowerOpt) {
        this.lowerOpt = lowerOpt;
    }

    public String getUpperOpt() {
        return upperOpt;
    }

    public void setUpperOpt(String upperOpt) {
        this.upperOpt = upperOpt;
    }

    public void initByTblItem(DecisionTableItem item) {
        this.setContentType(item.getContentType());
        this.setClassName(item.getClassName());
        this.setNameCN(item.getNameCN());
        this.setNameEN(item.getNameEN());
        this.setDomain(item.getDomain());
        this.setDataType(item.getDataType());
        this.setControlValue(item.getControlValue());
        this.setCollection(item.getCollection());
        this.setDefaultValue(item.getDefaultValue());
        this.setPosition(item.getPosition());
        this.setLowerOpt(item.getLowerOpt());
        this.setUpperOpt(item.getUpperOpt());
    }
}
